package com.remote.server.service.impl;

import com.remote.common.BlackList;
import com.remote.server.mapper.BlackMapper;
import com.remote.server.service.BlackService;
import com.smartcar.common.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BlackServiceImpl implements BlackService {

    @Autowired
    private BlackMapper blackMapper;

    @Override
    public List<User> BlackList() {
        return blackMapper.BlackList();
    }

    @Override
    public void blocked(BlackList blackList) {
        blackMapper.blocked(blackList);
    }

    @Override
    public void deblocking(String phone) {



        blackMapper.deblocking(phone);
    }



    @Override
    public List<User> selectUser() {
        return blackMapper.selectUser();
    }


    /**
     * 通过修改状态来进行封号
     * @param
     */
    @Override
    public void updateStatus(String phone,String endTime) {
        blackMapper.updateStatus(phone,endTime);
    }
}
